package com.wolfking.demo;

import com.google.gson.annotations.JsonAdapter;
import com.wolfking.mask.GsonMaskMobile;
import com.wolfking.mask.SensitiveInfo;
import com.wolfking.mask.SensitiveType;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Student {

    @SensitiveInfo(SensitiveType.CHINESE_NAME)
    private String name;

    @SensitiveInfo(SensitiveType.ID_CARD)
    private String idCard;

    @JsonAdapter(value = GsonMaskMobile.class, nullSafe = false)
    private String mobile;
}
